from PySide6.QtWidgets import QDialog, QFileDialog, QMessageBox


class openDialog(QDialog):
    """
    各类 QT会话窗口
    """
    def __init__(self):
        super(openDialog, self).__init__()

    # 路径选择框 QFileDialog
    def showDirectory(self):
        myDir = QFileDialog.getExistingDirectory(self, "请选择文件夹路径", "/home")
        return myDir

    # 提示对话框 QMessageBox
    def showMessage(self, text):
        # QMessageBox.critical(self, '错误', text)
        QMessageBox.about(self, 'Message', f"{text}     ")

    # 输入提示框 QInputDialog
    def showInput(self):
        pass